from tortoise import BaseDBAsyncClient


async def upgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `tb_monitor_log` MODIFY COLUMN `request_id` VARCHAR(50) NOT NULL COMMENT '请求Id';"""


async def downgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `tb_monitor_log` MODIFY COLUMN `request_id` VARCHAR(20) NOT NULL COMMENT '请求Id';"""
